package com.cangchu.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import com.cangchu.db.domain.Batch;
import com.cangchu.ui.layout.GoodsInfoLayout;

import java.util.List;

/**
 * RecycleView 的自定义Adapter。
 * Created by Administrator on 2016/11/8.
 */
public class GoodsInfoAdapter extends RecyclerView.Adapter<GoodsInfoAdapter.ViewHolder> {

    public static final String TAG = "GoodsInfoAdapter";
    private Context mContext;
    private List<Batch> mContactItems;

    public GoodsInfoAdapter(Context mContext, List<Batch> mContactItems) {
        this.mContext = mContext;
        this.mContactItems = mContactItems;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return null;
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return mContactItems.size();
    }

    public class ViewHolder extends RecyclerView.ViewHolder {

        public GoodsInfoLayout fragment;

        public ViewHolder(View itemView) {
            super(itemView);
        }
    }
}
